package org.jianfa.homework.user.mapper;

import org.apache.ibatis.annotations.Param;
import org.jianfa.homework.user.model.JianfaToken;

import java.util.List;

public interface JianfaTokenMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(JianfaToken record);

    JianfaToken selectByPrimaryKey(Integer id);

    List<JianfaToken> selectAll();

    int updateByPrimaryKey(JianfaToken record);

    JianfaToken selectByEmail(String email);

    JianfaToken selectByToken(String token);

    int updateTokenByEmail(@Param("email") String email, @Param("token") String token);
}